home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / TeX-inputs / LaTeX / base / graphpap.sty < prev    next >
Text File  |  1997-03-07  |  5KB  |  133 lines

  1. %%
  2. %% This is file `graphpap.sty',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% graphpap.dtx  (with options: `package')
  8. %% 
  9. %% This is a generated file.
  10. %% 
  11. %% Copyright 1993 1994 1995 1996 1997
  12. %% The LaTeX3 Project and any individual authors listed elsewhere
  13. %% in this file.
  14. %% 
  15. %% For further copyright information, and conditions for modification
  16. %% and distribution, see the file legal.txt, and any other copyright
  17. %% notices in this file.
  18. %% 
  19. %% This file is part of the LaTeX2e system.
  20. %% ----------------------------------------
  21. %%   This system is distributed in the hope that it will be useful,
  22. %%   but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. %%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24. %% 
  25. %%   For error reports concerning UNCHANGED versions of this file no
  26. %%   more than one year old, see bugs.txt.
  27. %% 
  28. %%   Please do not request updates from us directly.  Primary
  29. %%   distribution is through the CTAN archives.
  30. %% 
  31. %% 
  32. %% IMPORTANT COPYRIGHT NOTICE:
  33. %% 
  34. %% You are NOT ALLOWED to distribute this file alone.
  35. %% 
  36. %% You are allowed to distribute this file under the condition that it
  37. %% is distributed together with all the files listed in manifest.txt.
  38. %% 
  39. %% If you receive only some of these files from someone, complain!
  40. %% 
  41. %% 
  42. %% Permission is granted to copy this file to another file with a
  43. %% clearly different name and to customize the declarations in that
  44. %% copy to serve the needs of your installation, provided that you
  45. %% comply with the conditions in the file legal.txt.
  46. %% 
  47. %% However, NO PERMISSION is granted to generate or to distribute a
  48. %% modified version of this file under its original name.
  49. %% 
  50. %% You are NOT ALLOWED to change this file.
  51. %% 
  52. %% 
  53. %% MODIFICATION ADVICE:
  54. %% 
  55. %% If you want to customize this file, it is best to make a copy of
  56. %% the source file(s) from which it was produced.  Use a different
  57. %% name for your copy(ies) and modify the copy(ies); this will ensure
  58. %% that your modifications do not get overwritten when you install a
  59. %% new release of the standard system.  You should also ensure that
  60. %% your modified source file does not generate any modified file with
  61. %% the same name as a standard file.
  62. %% 
  63. %% You can then easily distribute your modifications by distributing
  64. %% the modified and renamed copy of the source file, taking care to
  65. %% observe the conditions in legal.txt; this will ensure that other
  66. %% users can safely use your modifications.
  67. %% 
  68. %% You will also need to produce your own, suitably named, .ins file to
  69. %% control the generation of files from your source file; this file
  70. %% should contain your own preambles for the files it generates, not
  71. %% those in the standard .ins files.
  72. %% 
  73. %% The names of the source files used are shown above.
  74. %% 
  75. %% 
  76. %% 
  77. %%
  78. %% File `graphpap.dtx'.
  79. %% Copyright (C) 1994 by Leslie Lamport
  80. %%                       all rights reserved.
  81. %%
  82. \NeedsTeXFormat{LaTeX2e}
  83. \ProvidesPackage{graphpap}
  84.       [1994/08/09 v1.0c Standard LaTeX graphpap package (LL)]
  85. \let\c@@grid\count@
  86. \def\@vgrid(#1,#2)#3#4#5{%
  87.   \setcounter{@grid}{#1}%
  88.   \multiput(#1,#2)(#3,0){#4}{\line(0,1){#5}}%
  89.   \multiput(#1,#2)(#3,0){#4}{\@vgridnumber{#3}}}
  90. \def\@vgridnumber#1{%
  91.   \makebox(0,0)[t]{%
  92.     \shortstack{\rule{0pt}{10pt}\\\arabic{@grid}}}%
  93.   \addtocounter{@grid}{#1}}
  94. \def\@nonumvgrid(#1,#2)#3#4#5{%
  95.   \multiput(#1,#2)(#3,0){#4}{\line(0,1){#5}}}
  96. \def\@hgrid(#1,#2)#3#4#5{%
  97.   \setcounter{@grid}{#2}%
  98.   \multiput(#1,#2)(0,#3){#4}{\line(1,0){#5}}%
  99.   \multiput(#1,#2)(0,#3){#4}{\@hgridnumber{#3}}}
  100. \def\@hgridnumber#1{%
  101.   \makebox(0,0)[r]{\arabic{@grid}\hspace{10pt}}%
  102.   \addtocounter{@grid}{#1}}
  103. \def\@nonumhgrid(#1,#2)#3#4#5{%
  104.   \multiput(#1,#2)(0,#3){#4}{\line(1,0){#5}}}
  105. \newcommand\graphpaper[1][10]{\leavevmode\@grid{#1}}
  106. \def\@grid#1(#2,#3)#4{\@grid@i{#1}{#2}{#3}(}
  107. \def\@grid@i#1#2#3(#4,#5){%
  108.   \@tempcnta=#4\relax
  109.   \divide\@tempcnta#1\relax
  110.   \advance\@tempcnta1\relax
  111.    {\thinlines\@nonumvgrid(#2,#3){#1}{\@tempcnta}{#5}
  112.     \@tempcnta#4\relax
  113.     \divide\@tempcnta5\relax
  114.     \divide\@tempcnta#1\relax
  115.     \advance\@tempcnta1\relax
  116.     \@tempcntb5\relax
  117.     \multiply\@tempcntb#1\relax
  118.     \thicklines\@vgrid(#2,#3){\@tempcntb}{\@tempcnta}{#5}
  119.     \@tempcnta#5\relax
  120.     \divide\@tempcnta #1\relax
  121.     \advance\@tempcnta1\relax
  122.     \thinlines\@nonumhgrid(#2,#3){#1}{\@tempcnta}{#4}
  123.     \@tempcnta#5\relax
  124.     \divide\@tempcnta5\relax
  125.     \divide\@tempcnta#1\relax
  126.     \advance\@tempcnta1\relax
  127.     \thicklines\@hgrid(#2,#3){\@tempcntb}{\@tempcnta}{#4}}%
  128.   \ignorespaces}
  129.  
  130. \endinput
  131. %%
  132. %% End of file `graphpap.sty'.
  133.